import request from "@/utils/request";
export function collectPost(params){
    return request({
        url:"/collection",
        method:'post',
        headers:{
            isToken:true
        },
        params,
    })
}
export function cancelCollect(params){
    return request({
        url:'/collection/cancel',
        method:'delete',
        headers:{
            isToken:true
        },
        params
    })
}
export function getCollectionList(params){
    return request({
        url:'/collection/list',
        method:'get',
        headers:{
            isToken:true
        },
        params
    })
}
export function isCollected(params){
    return request({
        url:'/collection/isCollected',
        method:'get',
        headers:{
            isToken:true
        },
        params
    })
}